// Copyright © 2016- 2024 Sesame Network Technology all right reserved

package define

const VectorDimension = 2000

const MaxRobotNum = 6

const (
	FileStatusWaitCrawl      = 5
	FileStatusCrawling       = 6
	FileStatusCrawlException = 7
	FileStatusInitial        = 0
	FileStatusException      = 3
	FileStatusWaitSplit      = 4
	FileStatusLearning       = 1
	FileStatusLearned        = 2
)

const (
	QAIndexTypeQuestionAndAnswer = 1
	QAIndexTypeQuestion          = 2
)

const (
	VectorStatusInitial   = 0
	VectorStatusConverted = 1
	VectorStatusException = 2
)

const (
	MsgFromCustomer = 1
	MsgFromRobot    = 0
)

const (
	MsgTypeText  = 1
	MsgTypeMenu  = 2
	MsgTypeImage = 3
)

const (
	FileIsTable = 1
	DocTypeQa   = 1
)

const (
	ParagraphTypeNormal  = 1
	ParagraphTypeDocQA   = 2
	ParagraphTypeExcelQA = 3
)

const (
	VectorTypeParagraph = 1
	VectorTypeQuestion  = 2
	VectorTypeAnswer    = 3
	VectorTypeCustom    = 4
)

const (
	SearchTypeMixed    = 1
	SearchTypeVector   = 2
	SearchTypeFullText = 3
)

var SeparatorsList = []map[string]any{
	{`no`: 1, `name`: `#`, `code`: `#`},
	{`no`: 2, `name`: `##`, `code`: `##`},
	{`no`: 3, `name`: `###`, `code`: `###`},
	{`no`: 4, `name`: `####`, `code`: `####`},
	{`no`: 5, `name`: `#####`, `code`: `#####`},
	{`no`: 6, `name`: `-`, `code`: `-`},
	{`no`: 7, `name`: `space`, `code`: " "},
	{`no`: 8, `name`: `semicolon`, `code`: []string{`；`, `;`}},
	{`no`: 9, `name`: `comma`, `code`: []string{`，`, `,`}},
	{`no`: 10, `name`: `period`, `code`: []string{`。`, `.`}},
	{`no`: 11, `name`: `enter`, `code`: []string{"\r\n", "\n", "\r"}},
	{`no`: 12, `name`: `blank_line`, `code`: []string{"\r\n\r\n", "\n\n", "\r\r"}},
	{`no`: 13, `name`: `tab`, `code`: "\t"},
}

var DefaultUserRoleId int

const (
	DefaultUser   = `admin`
	DefaultPasswd = `chatwiki.com@123`
	UserTypeAdmin = 1
)

const (
	ChatTypeLibrary = 1
	ChatTypeDirect  = 2
	ChatTypeMixture = 3
)

const (
	DocTypeLocal  = 1
	DocTypeOnline = 2
	DocTypeCustom = 3
)

const (
	SwitchOff = 0
	SwitchOn  = 1
)

const DefaultCustomerAvatar = `/public/user_avatar_2x.png`
